package tools;

public class LMTStatistics {
	
	public long hullEdgeCount;
	public long allEdgeCount;
	public long edgesWithoutLocalMinimum;
	public long nonIntersectingEdges;
	
	
	void log(String key, String text) {
		
		if (key.equals("hullEdgeCount"))
			hullEdgeCount = Long.parseLong(text);

		if (key.equals("allEdgeCount"))
			allEdgeCount = Long.parseLong(text);
		
		if (key.equals("edgesWithoutLocalMinimum"))
			edgesWithoutLocalMinimum = Long.parseLong(text);

		if (key.equals("nonIntersectingEdges"))
			nonIntersectingEdges = Long.parseLong(text);
		
		if (text == null) {
			System.out.println(key + "\r\n");
		}
		else
			System.out.println(key + ":" + text);
		
	}
	
}
